import {rand} from './rand';
export function percent(n){
    //获取从 1-100 的随机数
    let num = rand(1,100);
    //判断
    if(num <= n){
        return true;
    }else{
        return false;
    }
}